package com.ruoyi.quartz.mapper;

import com.ruoyi.alarmmanagement.domain.DmWarn;
import com.ruoyi.quartz.domain.DataIntegrity;
import com.ruoyi.quartz.domain.InstantNumberMutation;
import com.ruoyi.quartz.domain.PressureMutation;
import com.ruoyi.quartz.domain.ReadFlow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RunWarnMapper {

    List<InstantNumberMutation> job_InstantFlowMutationWarning(@Param("dateTimeS") String dateTimeS, @Param("dateTimeE") String dateTimeE);

    //查重-根据terminalId和TerminalDate
    Integer getAlarmRecordCount(@Param("location_nb")String location_nb, @Param("WarnType")Integer WarnType, @Param("createTime")String createTime);

    //批量新增预警
    Integer insertAlarmBatch(@Param("alarms") List<DmWarn> alarms);

    // 压力数值突变预警
     List<PressureMutation> pressMutationWarning(@Param("dateTimeS") String dateTimeS, @Param("dateTimeE") String dateTimeE);


    // 正向累计数值突变预警
    public List<ReadFlow> readFlowMutationWarning(@Param("dateTimeS") String dateTimeS, @Param("dateTimeE") String dateTimeE);

    // 数据完整性
    public List<DataIntegrity> dataIntegrityWarning(@Param("dateTimeS") String dateTimeS, @Param("dateTimeE") String dateTimeE);

    // 日用量预警
    public List<PressureMutation> FreezeDayWarning(@Param("dateTimeS") String dateTimeS,@Param("dateTimeE") String dateTimeE);

}
